import request from '@/api/socialized-servce/index.js' //引入http.js
const api = request

export default {
	// 获取会员地址列表 分页
	queryPageByCondition(params){
		let url = 'system/memberAddress/queryPageByCondition'
		return api.request(url,'post',{
			...params
		})
	},
	// 获取会员列表
	queryByCondition(params){
		let url = 'system/memberAddress/queryByCondition'
		return api.request(url,'post',{
			...params
		})
	},
	// 添加
	add(params) {
		let url = 'system/memberAddress/add'
		return api.request(url, 'post', params)
	},
	
	
	// 修改
	edit(params) {
		let url = 'system/memberAddress/edit'
		return api.request(url, 'put', params)
	},
	// 修改
	del(params) {
		let url = `system/memberAddress/del?id=${params}`
		return api.request(url, 'DELETE', params)
	},
	// 查询地址
	queryAddress(params) {
		let url = 'business/businessRegion/address'
		return api.request(url, 'get', params)
	},
	changeDefAddress(params) {
		let url = 'business/businessRegion/changeDefAddress'
		return api.request(url, 'get', params)
	},
	// 获取会员详情
	queryById(params) {
		let url = 'system/memberAddress/queryById'
		return api.request(url, 'get', params)
	}
}